package com.anlu.cloud.log.config;

import com.anlu.cloud.log.contants.LogQueue;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
rabbitMq配置
 */
@Configuration
public class RabbitMqConfig {
    /**
     * 声明队列
     * @return
     */
    @Bean
    public Queue logQueue() {
        Queue queue = new Queue(LogQueue.LOG_QUEUE);
        return queue;
    }


}
